$(function() {
  $.ajax({
    url: "/api/brand/list",
    type: "get",
    success: function(res) {
      console.log(res);
      let lbStr = template("brand_list", res.data);
      $("#lb").html(lbStr);
    }
  });
  $("#lb").on("click", "a", function(e) {
    // e.preventDefault();
    let brandDetail_Id = $(this).attr("data-id");
    console.log(brandDetail_Id);
    localStorage.setItem("brandDetail_Id", brandDetail_Id);
  });
});
